package com.wu.project.admin.service;

import com.wu.project.admin.component.JsonResult;
import com.wu.project.admin.entity.*;
import jxl.write.WriteException;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface GoodsService {

    void downloadXlsDemo(HttpServletResponse response) throws IOException, WriteException;

    void uploadXls(MultipartFile file);

    JsonResult getGoods(GoodsQueryVO goodsQueryVO);

    JsonResult goodsDown(GoodsQueryVO goodsQueryVO);

    JsonResult updateGoods(GoodsDTO goodsDTO);

    JsonResult queryType1();

    JsonResult addTypeOne(String oneType);

    JsonResult updateTypeOne(GoodsTypeOne goodsTypeOne);

    JsonResult deleteTypeOne(GoodsTypeOne goodsTypeOne);

    JsonResult queryType2(Integer oneId);

    JsonResult addTypeTwo(String twoType,Long oneId);

    JsonResult updateTypeTwo(GoodsTypeTwo goodsTypeTwo);

    JsonResult deleteTypeTwo(GoodsTypeTwo goodsTypeTwo);

    JsonResult getTwoAllData();

    JsonResult getThreeGoodsList(Integer twoId);

    JsonResult addTypeThree(String threeType,Long twoId);

    JsonResult deleteTypeThree(ShopThreeDTO shopThreeDTO);

    JsonResult updateTypeThree(ShopThreeDTO shopThreeDTO);

    JsonResult queryAllThree();
}
